package com.zhehekeji.opsys.api.resp;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;

import com.zhehekeji.opsys.api.common.util.SuperResp;

/**
 * @ClassName GetSigninRecordResp
 * @Description TODO
 * @author chenweiliu chenwei.liu@163.com
 * @date 2016-7-13   上午10:06:43
 */
@XmlRootElement
public class GetSigninRecordResp extends SuperResp {

	/** 
	* @Fields serialVersionUID : TODO
	*/ 
	private static final long serialVersionUID = -7728502954556533661L;
	private Integer recordSize;
	private List<SigninRecordInfo> signinRecordInfos;
	private String startDay;
	private String endDay;
	public Integer getRecordSize() {
		return recordSize;
	}

	public void setRecordSize(Integer recordSize) {
		this.recordSize = recordSize;
	}

	public List<SigninRecordInfo> getSigninRecordInfos() {
		return signinRecordInfos;
	}

	public void setSigninRecordInfos(List<SigninRecordInfo> signinRecordInfos) {
		this.signinRecordInfos = signinRecordInfos;
	}
	public String getStartDay() {
		return startDay;
	}

	public void setStartDay(String startDay) {
		this.startDay = startDay;
	}

	public String getEndDay() {
		return endDay;
	}

	public void setEndDay(String endDay) {
		this.endDay = endDay;
	}

	@Override
	public String toString() {
		return "GetSigninRecordResp [recordSize=" + recordSize
				+ ", signinRecordInfos=" + signinRecordInfos + ", startDay="
				+ startDay + ", endDay=" + endDay + ", getResultCode()="
				+ getResultCode() + ", getResultDesc()=" + getResultDesc()
				+ "]";
	}

	public static class SigninRecordInfo implements Serializable{

		/** 
		* @Fields serialVersionUID : TODO
		*/ 
		private static final long serialVersionUID = -6290168214645093994L;
		private String productID;
		private String userID;
		//1：已签到；0：未签到
		private int signinFlag;
		//yyyyMMddHHmmss
		private String signinTime;
		//yyyyMMdd
		private String signinDay;
		private String randomStr;
		private Long cpCode;
		public String getProductID() {
			return productID;
		}
		public void setProductID(String productID) {
			this.productID = productID;
		}
		public String getUserID() {
			return userID;
		}
		public void setUserID(String userID) {
			this.userID = userID;
		}
		public int getSigninFlag() {
			return signinFlag;
		}
		public void setSigninFlag(int signinFlag) {
			this.signinFlag = signinFlag;
		}
		public String getSigninTime() {
			return signinTime;
		}
		public void setSigninTime(String signinTime) {
			this.signinTime = signinTime;
		}
		public String getSigninDay() {
			return signinDay;
		}
		public void setSigninDay(String signinDay) {
			this.signinDay = signinDay;
		}
		public String getRandomStr() {
			return randomStr;
		}
		public void setRandomStr(String randomStr) {
			this.randomStr = randomStr;
		}
		public Long getCpCode() {
			return cpCode;
		}
		public void setCpCode(Long cpCode) {
			this.cpCode = cpCode;
		}
		@Override
		public String toString() {
			return "SigninRecordInfo [productID=" + productID + ", userID="
					+ userID + ", signinFlag=" + signinFlag + ", signinDay="
					+ signinDay + "]";
		}
	}
}

